package com.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Entity
@Table(name = "website_visitorapi")
//调用接口后记录
public class WebsiteVisitorApi {

    @Id
    private String id;

    private String addr;

    private String useragent;

    private String apiname;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    //private Date createtime;
    private LocalDateTime createtime;


}
